import { createSSRApp } from 'vue'
import App from './App'
import http from './utils/request.js'

export function createApp() {
  const app = createSSRApp(App)
  
  // 全局挂载 http
  app.config.globalProperties.$http = http
  
  return {
    app
  }
}